package com.hk.controller;

import com.hk.service.business.SpringRetryBusiness;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("retry")
public class SpringRetryController {

    @Autowired
    private SpringRetryBusiness business;

    @GetMapping("retryDemo")
    public void retryDemo() {
        business.retry();
    }

}
